const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 将token封装到全局getters里面,用的时候可以少些代码
  token: state => state.user.token,
  name: state => state.user.userInfo.data.username,
  staffPhoto: state => state.user.userInfo.data.staffPhoto,
  companyId: state => state.user.userInfo.data.companyId,
  routes: state => state.permission.routes,
  roles: state => state.user.userInfo.data.roles
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
}
export default getters
